package com.yuanqunsoft.alimigration.service;

import java.util.List;

import com.yuanqunsoft.alimigration.bean.RuleBean;
import com.yuanqunsoft.alimigration.bean.RuleSetBean;
import com.yuanqunsoft.alimigration.model.Rule;
import com.yuanqunsoft.alimigration.model.RuleSet;

public interface IRuleSetService {

    public boolean isRuleSetNameExisted(RuleSetBean rule);
    
    public List<RuleBean> getRuleByRuleSetId(int id);

    public boolean addRuleSet(RuleSetBean rs, List<Integer> ruleIds);

    public boolean deleteRuleSet(RuleSetBean rs);

    public boolean updateRuleSet(RuleSetBean rs);

    public List<RuleSetBean> getAllRuleSets();

    public List<RuleSetBean> getAllRuleSets(int currentPage, int pageSize);

    public RuleSetBean getRuleSetById(int id);

    public int getAllPage();

    public void selectRules(RuleSetBean rs, List<Integer> ruleIds);
    
    public List<RuleSetBean> findByRuleId(int id);

}
